dns server bind is not work [closed]
Posted
by
user1742080
on Server Fault
See other posts from Server Fault
or by user1742080
Published on 2012-10-12T18:47:38Z
Indexed on
2012/10/12
21:39 UTC
Read the original article
Hit count: 242
I just installed bind on RHEL 6 and point a domain to that server. but actually when i ping domain it returns error 1214: Here is my named.conf:
//
// named.conf
//
// Provided by Red Hat bind package to configure the ISC BIND named(8) DNS
// server as a caching only nameserver (as a localhost DNS resolver only).
//
// See /usr/share/doc/bind*/sample/ for example named configuration files.
//
options {
listen-on port 53 { any; };
listen-on-v6 port 53 { ::1; };
directory "/var/named";
dump-file "/var/named/data/cache_dump.db";
statistics-file "/var/named/data/named_stats.txt";
memstatistics-file "/var/named/data/named_mem_stats.txt";
allow-query { any; };
recursion yes;
dnssec-enable yes;
dnssec-validation yes;
dnssec-lookaside auto;
/* Path to ISC DLV key */
bindkeys-file "/etc/named.iscdlv.key";
managed-keys-directory "/var/named/dynamic";
};
logging {
channel default_debug {
file "data/named.run";
severity dynamic;
};
};
zone "." IN {
type hint;
file "named.ca";
};
include "/etc/named.rfc1912.zones";
include "/etc/named.root.key";
zone "mydomain.com"{
type master;
file "/var/named/data/named.mydomain.com";
allow-update { none; };
};
AND The content of "/var/named/data/named.mydomain.com":
1 $TTL 38400
2
3 mydomain.com. IN SOA ns1.mydomain.com. milad.yahoo.com. (
4 2012101201 ; serial number YYMMDDNN
5 28800 ; Refresh
6 7200 ; Retry
7 864000 ; Expire
8 38400 ; Min TTL
9 )
10
11 mydomain.com. IN A 1.2.3.4
12 www IN A 1.2.3.4
13 ns1.mydomain.com. IN A 1.2.3.4
14 ns2.mydomain.com. IN A 1.2.3.4
15 mydomain.com. IN NS ns1.mydomain.com.
16 mydomain.com. IN NS ns2.mydomain.com.
AND i'm sure the named service is running:
[root@server ~]# service named status
version: 9.8.2rc1-RedHat-9.8.2-0.10.rc1.el6_3.3
CPUs found: 8
worker threads: 8
number of zones: 20
debug level: 0
xfers running: 0
xfers deferred: 0
soa queries in progress: 0
query logging is OFF
recursive clients: 0/0/1000
tcp clients: 0/100
server is up and running
named (pid 26299) is running...
© Server Fault or respective owner